package com.wwwarehouse.usercenter.fragment.permission_recycle;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.wwwarehouse.common.activity.base.BaseFragment;
import com.wwwarehouse.common.custom_widget.CircleImageView;
import com.wwwarehouse.common.custom_widget.state_layout.StateLayout;
import com.wwwarehouse.usercenter.R;

/**
 * 权限回收通知
 * Created by xiaoke.ni on 2017/10/19.
 */

public class PRNewsFragment extends BaseFragment implements View.OnClickListener {

    private View mView;

    private StateLayout mSlt;
    private CircleImageView mPrImgCiv;
    private TextView mWarehouseTv;
    private TextView mNameTv;
    private TextView mMsgTv;
    private LinearLayout mPrSuccessBtnLl;
    private Button mPrNextBtn;
    private Button mPrFinishBtn;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mView = View.inflate(getActivity(), R.layout.fragment_triangulation_chain, null);
        return mView;
    }

    @Override
    public void onClick(View v) {

    }

    @Override
    public void setTitle() {
        if (peekFragment() instanceof PRNewsFragment) {
            mActivity.setTitle(getResources().getString(R.string.user_pr_notice));
        }
    }

    @Override
    public void requestDatas() {
        mSlt = (StateLayout) mView.findViewById(R.id.slt);
        mPrImgCiv = (CircleImageView) mView.findViewById(R.id.pr_img_civ);
        mWarehouseTv = (TextView) mView.findViewById(R.id.warehouse_tv);
        mNameTv = (TextView) mView.findViewById(R.id.name_tv);
        mMsgTv = (TextView) mView.findViewById(R.id.msg_tv);
        mPrSuccessBtnLl = (LinearLayout) mView.findViewById(R.id.pr_success_btn_ll);
        mPrNextBtn = (Button) mView.findViewById(R.id.pr_next_btn);
        mPrFinishBtn = (Button) mView.findViewById(R.id.pr_finish_btn);
    }
}
